package com.ruoyi.system.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.Member;
import com.ruoyi.system.service.impl.MemberService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Objects;

@RestController
@RequestMapping("/athlete")
public class memberController {
    @Resource
    private MemberService memberService;
    @GetMapping
    public AjaxResult getMemberById(String memberNo){
        Member member = memberService.selectMemberById(memberNo);
        if(!Objects.isNull(member.getBirthday())){
        }
        return AjaxResult.success(member);
    }
}
